package cn.netbox.spring.service;

import cn.netbox.spring.dao.UserDao;
import cn.netbox.spring.dao.UserDaoImpl;

/**
 * description:
 * date: 2021/11/24 16:46
 * author: Alex
 * version: 1.0
 */
public class UserServiceImpl implements UserService {
    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void addUser() {
        // 先去判断业务逻辑
        // 判断有没有操作权限
        // 判断用户名是否合法
        userDao.insertUser();
    }
}
